const mongoose = require('./index')

let Schema = mongoose.Schema

module.exports = mongoose.model('Users', new Schema({
  username: {
    type: String,
    required: true
  },
  password: {
    type: String,
    required: true
  },
  gender: {
    type: Number,
    enum: [-1, 0, 1],
    default: -1
  },
  auth: {
    type: Number,
    enum: [0, 1],
    default: 1
  },
  introduce: {
    type: String,
    default: '这个人有点懒，还没有自我介绍哦~~~'
  },
  regDate: {
    type: Date,
    default: Date.now
  },
  modyfyDate: {
    type: Date,
    default: Date.now
  },
  collect_title: {
    type: String,
    default: ''
  }
}))
